setFontRequest

abstract fun setFontRequest(block: DesignBlock, request: FontRequest, from: Int = -1, to: Int = -1)

Stores a runtime font request for this block or text range and starts resolution. The request is preserved through load/save even when unavailable. Existing URI font APIs retain their behavior. Resolution is asynchronous. Await forceLoadResources before measuring or exporting. Substitution can change layout; metric-compatible substitution is not provided. Required scope: "text/character".

Parameters

block

the text or caption block.

request

the stable font identity and optional asset handle.

from

start UTF-16 index, or -1 for the entire block.

to

exclusive end UTF-16 index, or -1 for the entire block.